<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>商城管理系统</title>
  </head>
  <body>
    <div id="app"></div>
  </body>

  <script>
    let doc = document.documentElement;
    let width = doc.clientWidth;
    let ratio = width / 375;
    let fontSize = 10 * ratio;
    if (fontSize > 20) fontSize = 20;
    doc.style.fontSize = fontSize + "px";
  </script>
</html>
